package apiwork.lcbmi.action;

import java.util.Map;

import org.apache.mina.core.session.IoSession;

import apiwork.bean.ISessionBean;

import com.linkage.lcims.base.AdminBean;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ModelDriven;

/**
 *
 * @author zhaigx 66206
 * @date 2011-10-19
 */
public class BaseAction implements Action, ModelDriven<Object> {
	 protected final static String ACTION_FINISH="action_finish";
	 protected final static String RESULT_SUCCESS="0";//zhaigx add
	 protected final static String RESULT_FAIL="1";//zhaigx add
	 private ISessionBean sessionBean;

	public Object getModel() {
		// TODO Auto-generated method stub
		return null;
	}

	public String execute() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	public IoSession getSession(){
		try {
			sessionBean=new ISessionBean();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return (IoSession)sessionBean.getSession();
	}

}
